import request from '@/utils/request'

// 获取接受检测列表
export function getTableList(query) {
  return request({
    url: '/cqbc/datamanager/list',
    method: 'get',
    params: query
  })
}
//手动添加长期保存包
export function handadd(data) {
  return request({
    url: '/cqbc/datamanager/handadd',
    method: 'POST',
    data: data
  })
}

//删除
export function datamanagerDelete(id) {
  return request({
    url: '/cqbc/datamanager/delete/'+id,
    method: 'DELETE',
  })
} 

//修改回显详情
export function getDataManagebyId(id) {
  return request({
    url: '/cqbc/datamanager/getDataManagebyId/'+id,
    method: 'GET',
  })
} 

//修改
export function update(data) {
  return request({
    url: '/cqbc/datamanager/update',
    method: 'POST',
    data:data
  })
} 
//四性检测
export function fourCheck(data) {
  return request({
    url: '/cqbc/receiveDetection/fourCheck',
    method: 'POST',
    data:data
  })
}

//目录解析
export function dirParsing(data) {
  return request({
    url: '/cqbc/receiveDetection/dirParsing',
    method: 'POST',
    data:data
  })
}

//磁盘拷贝
export function moveItem(data) {
  return request({
    url: '/cqbc/datamanager/moveItem',
    method: 'POST',
    params:query
  })
}